﻿function getSelectedItems() {
    var table = $("#grdData");
    var result = 0;
    result = $("tr td:nth-child(1) input[type='checkbox']:checked", table).length;
    return result;
}



function confirmDelete(button) {
    return confirm("Do you want to delete system '" + $("td:eq(1)", $(button).closest("tr")).text() + "'?");

}

$(document).ready(function () {
    $("#chkSelectAll").click(function () {
        toggleCheckboxes($("#grdData"), 1, this.checked);
    });
});
